/**
 *  Copyright (c) 2011, IPC Studio, USTC, All rights reserved
 *  FileName: Log.h
 *  Author: chengximing1989@gmail.com
 *  DateCreated: 2011-9-28
 *  Brief: class CLog definition, Log manager
 */

#ifndef LOG_H_
#define LOG_H_
#include "common.h"
#include <stdarg.h>

LIBLYRICS_NAMESPACE_BEGIN

/* Log level */
#define LOG_NONE          (-1)
#define LOG_ERROR          0
#define LOG_WARNING        1
#define LOG_INFO           2
#define LOG_DEBUG          3

class CLog
{
public:
	static void LogDefault(int iLevel, const char *psz_fmt,...);
	static void LogbyLevel(int iLevel, const char *psz_fmt,...);
	static void SetLogLevel(int iLevel);
private:
	static int m_iLogLevel;
};

LIBLYRICS_NAMESPACE_END
#endif